package com.liao.liaowenlong.service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.text.TextUtils;

public class MyService3 extends Service {

    public MyService3() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        return new MyBind();
    }

    public class MyBind extends Binder {
        public String setText(String text) {
            String s;
            if (TextUtils.isEmpty(text)) {
                s = "hello lenovo";
            } else {
                s = text + "~~lenovo";
            }
            return s;
        }
    }
}
